<template>
  <div class="container">
    examplelist1
    <div>{{123 | money(123)}}</div>
    <div>{{user.name}}</div>
  </div>
</template>

<script>
import { request } from '@/plugins/request'

export default {
  middleware: 'test01',//中间件验证
  name: 'examplelist1',
  layout: 'layout1',//使用布局1
  computed: {
    user() {
      return this.$store.state.user;
    }
  },
  methods: {
    async login () {
      request({
        method: 'POST',
        url: '/api/users/login',
        data: {
          id: 123
        }
      })
    }
  },
  mounted() {
    this.login();
  }
}
</script>

<style>
.container {
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.title {
  font-family:
    'Quicksand',
    'Source Sans Pro',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  display: block;
  font-weight: 300;
  font-size: 100px;
  color: #35495e;
  letter-spacing: 1px;
}

.subtitle {
  font-weight: 300;
  font-size: 42px;
  color: #526488;
  word-spacing: 5px;
  padding-bottom: 15px;
}

.links {
  padding-top: 15px;
}
</style>
